package top.igotcha.eduservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import top.igotcha.commonutils.utils.R;

import java.util.List;

/**
 * @author Gotcha
 * @date 2021/8/9
 * @describe
 */
//指明要调用的服务名称
@FeignClient(value = "service-vod",fallback = VodFileDegradeFeignClient.class)
@Component
public interface VodClient {
    //定义调用的方法路径
    @DeleteMapping("/eduvod/video/{videoId}")
    public R removeAliYunVideo(@PathVariable String videoId);

    //定义调用的方法路径
    @DeleteMapping("/eduvod/video/deleteBatch")
    public R removeBatchAliYunVideo(@RequestParam("videoList") List<String> videoList);
}
